package com.pactera.asmp.server.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.Date;

/**
 * @ProjectName: asmp-server
 * @Package com.pactera.asmp.server.pojo
 * @ClassName: TPluginConfig
 * @Description: TPluginConfig
 * @Date 2020/08/03 15:07
 * @Author lvzhiqiang
 * @Version 1.0
 */
public class TPluginConfig {
    private Long id;

    /**
     * 项目ID
     */
    private Integer projectId;

    /**
     * 服务地址
     */
    private String serverAddress;

    /**
     * 生成的apk地址
     */
    private String apkPath;

    /**
     * 配置项
     */
    private String configItem;

    /**
     * 异常数据收集
     */
    private String exceptionDataCollection;

    /**
     * 插件配置状态，-1-未发送 0-待生成，1-生成中，2-成功，3-失败
     */
    private Byte status;

    /**
     * 是否可用，0-可用，1-不可用(删除)
     */
    private Byte isUse;

    private Integer createUserId;

    private String createUserName;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 非持久化字段，项目名
     */
    private String projectName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    public String getServerAddress() {
        return serverAddress;
    }

    public void setServerAddress(String serverAddress) {
        this.serverAddress = serverAddress == null ? null : serverAddress.trim();
    }

    public String getApkPath() {
        return apkPath;
    }

    public void setApkPath(String apkPath) {
        this.apkPath = apkPath == null ? null : apkPath.trim();
    }

    public String getConfigItem() {
        return configItem;
    }

    public void setConfigItem(String configItem) {
        this.configItem = configItem == null ? null : configItem.trim();
    }

    public String getExceptionDataCollection() {
        return exceptionDataCollection;
    }

    public void setExceptionDataCollection(String exceptionDataCollection) {
        this.exceptionDataCollection = exceptionDataCollection == null ? null : exceptionDataCollection.trim();
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Byte getIsUse() {
        return isUse;
    }

    public void setIsUse(Byte isUse) {
        this.isUse = isUse;
    }

    public Integer getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(Integer createUserId) {
        this.createUserId = createUserId;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName == null ? null : createUserName.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }
}